package com.free.solon;

import org.noear.solon.Solon;
import org.noear.solon.annotation.SolonMain;
import org.noear.solon.web.cors.CrossHandler;

@SolonMain
public class App {

    public static void main(String[] args) {
        Solon.start(App.class, args, app -> {
            //跨域配置
            app.before(new CrossHandler().allowedOrigins("*"));
        });
    }

}
